package com.github.zhuyiyi1990.oraclejavaprogrammerexam.ocajp8.pdf.question96;

public class SumTest {

    public static void doSum(Integer x, Integer y) {
        System.out.println("Integer sum is " + (x + y));
    }

    public static void doSum(double x, double y) {
        System.out.println("double sum is " + (x + y));
    }

    public static void doSum(float x, float y) {
        System.out.println("float sum is " + (x + y));
    }

    public static void doSum(int x, int y) {
        System.out.println("int sum is " + (x + y));
    }

    public static void main(String[] args) {
        doSum(10, 20);
        doSum(10.0, 20.0);
//        doSum(new Integer(10), 20);
//        doSum(10, new Integer(20));
//        doSum(10f, 20);
    }

}
